package com.mzj.saas.mservice.application.repository;

import com.mzj.saas.mservice.application.entity.ApprovalProcessDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

public interface ApprovalProcessDetailRepository  extends PagingAndSortingRepository<ApprovalProcessDetail, Long>, JpaSpecificationExecutor<ApprovalProcessDetail>, JpaRepository<ApprovalProcessDetail,Long> {

    @Transactional
    void deleteByApprovalProcessId(Long approvalProcessId);
}
